const express = require('express');
const session = require('express-session');
const pageRouter = require('./router/pageRouter');
const interfaceRouter = require('./router/interfaceRouter');
const app = express();
app.listen(65535,() => {
    console.log('start success');
});

app.use(express.static('../client/static'));
app.use(express.urlencoded({extended:false}));
app.use(session({
    secret:'def456',
    saveUninitialized:false,
    resave:false,
}));


app.use(pageRouter);
app.use(interfaceRouter);